package com.xiongkw.dbutil;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class Main {

    public static  void  main(String[] args) throws  Exception{
        GenSqlMapMysql sqlMapMysql = new GenSqlMapMysql("com.dm.workefficiency.common.model",
                "com.dm.workefficiency.common.mapper");
        String URL ="jdbc:mysql://10.248.224.12:21202/dmall_attendance?characterEncoding=UTF-8&useSSL=false";
        String NAME = "openteam";
        String PASS = "7l299l6BzAr^S15";
        sqlMapMysql.setDbUrl(URL);
        sqlMapMysql.setDbUserName(NAME);
        sqlMapMysql.setDbPassword(PASS);

        sqlMapMysql.setTablename("attendance_result");
        //生成 sqlmap、model、mapper
        sqlMapMysql.generateDbAccessFiles();

    }
}
